﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sunny.UI;

namespace VirtualHost.WinForm {
    public class WinFormBase : UIForm {

        #region 1.0 更新界面 +void UpdateWinUI(Action action)
        /// <summary>
        /// 更新界面
        /// </summary>
        /// <param name="action"></param>
        public void UpdateWinUI(Action action) {
            if (this.IsDesignMode) {
                return;
            }
            if (this.Disposing || this.IsDisposed) {
                return;
            }
            this.Invoke(action);
        } 
        #endregion

    }
}
